<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => '用户信息', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="comment-view">

    

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'openid',
            'nick',
            [
            'attribute' => 'photo',
            'format' => 'image',
            'value'=>function($data) { return $data->photo; },
            'options' => ['width' => '10%'],
            ],
            'coin',
            'created_at',
            'updated_at',
            'access_token',
            'expired_at',
        ],
    ]) ?>

</div>
